import { IModelParams } from "./interfaces";

class Model {
    private tableName:string = "";
    private fields:object = {};
    private data:object = {};
    constructor(params?:IModelParams | null | undefined){
        if(params){
            this.tableName = params.tableName;
            this.fields = params.fields;
            this.data = {}
        }
    }
    getTableName(){
        return this.tableName;
    }
    setTableName(tableName:string){
        this.tableName = tableName;
    }

    getFields(){
        return this.fields;
    }

    setFields(fields:object){
        this.fields = fields;
    }
    put(key:string, val:String){
        this.data[key] = val;
    }
    
    
}

export default Model;